home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSI Options 4.xpl < prev    next >
Text File  |  2002-07-31  |  2KB  |  64 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Software Installation\Windows Installer"
  5. "NAME"="Options - System"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Always install using privileged account"
  9. "TEXT 2"="Enable users to control installation"
  10. "TEXT 3"="Auto execute MSI files downloaded using IE (no warning)"
  11. "DESCRIPTION 1"="Internet Explorer 5, Office 2000 and Windows 2000 use a new standard for installing applications: the Windows Installer (aka MSI). "
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16.  
  17.  
  18. sPathSys="HKLM\Software\Policies\Microsoft\Windows\Installer\"
  19. sV1="AlwaysInstallElevated" 'DW - sys
  20. sV2="EnableUserControl" 'DW
  21. sV3="SafeForScripting" 'DW
  22.  
  23.  
  24. Sub Plugin_Initialize 
  25.  i=RegReadValue(sPathSys & sV1)
  26.  if i=1 then setuielement 1,true
  27.  
  28.  i=RegReadValue(sPathSys & sV2)
  29.  if i=1 then setuielement 2,true
  30.  
  31.  i=RegReadValue(sPathSys & sV3)
  32.  if i=1 then setuielement 3,true
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  b=GetUIElement(1)
  40.  if b=true then
  41.     Call RegWriteValue(sPathSys & sV1,1,2)
  42.  else
  43.     Call RegWriteValue(sPathSys & sV1,0,2)
  44.  end if
  45.  
  46.  b=GetUIElement(2)
  47.  if b=true then
  48.     Call RegWriteValue(sPathSys & sV2,1,2)
  49.  else
  50.     Call RegWriteValue(sPathSys & sV2,0,2)
  51.  end if
  52.  
  53.  b=GetUIElement(3)
  54.  if b=true then
  55.     Call RegWriteValue(sPathSys & sV3,1,2)
  56.  else
  57.     Call RegWriteValue(sPathSys & sV3,0,2)
  58.  end if
  59.  
  60. End Sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.